//
//  CoreDataManager.h
//  Puzzle_Crazy
//
//  Created by VIETHUNG on 4/2/14.
//  Copyright (c) 2014 DanielLe. All rights reserved.
//

#import <Foundation/Foundation.h>
@class PuzzleObject;

@interface CoreDataManager : NSObject
{
    NSPersistentStoreCoordinator *persistentStoreCoordinator;
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;
}
@property (nonatomic, strong, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, strong, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (NSManagedObjectContext *) managedObjectContext;
- (NSURL *)applicationDocumentsDirectory;
+ (CoreDataManager *)sharedManager;

- (void)saveData:(NSMutableArray*)arrayData;
- (void)deleteData;
- (void)updateData:(PuzzleObject *)puzzleObj;
- (NSMutableArray*)showData;
@end
